package cn.lovefix.base;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Query {
    private Integer pageSize;
    private Integer currentPage;
    public Integer getStart(){
        return (currentPage-1) * pageSize;
    }

}
